package com.info.widgets.Serverlog;

import java.util.ArrayList;
import java.util.List;
import java.sql.*;

import com.info.widgets.ConnectionHelper;
import com.info.widgets.DAOException;
import com.info.widgets.Serverlog.Serverlog;
public class ServerlogService {
	public void create(Serverlog  service) throws DAOException {
		service=new Serverlog ();
		Connection c = null;
		PreparedStatement ps = null;
		//xyz=proct.name;
		try {
			System.out.println("****************************fffff**************************************************");
			c = ConnectionHelper.getConnection();
			ps = c.prepareStatement("INSERT INTO Serverlog  (name, date, scrapeserverlogandmysqldump, mysqldumponly) VALUES(?, ?, ?, ?)");
			 
			ps.executeUpdate();
			} catch (Exception e) {
			e.printStackTrace();
			throw new DAOException(e);
		} finally {
			ConnectionHelper.close(c);
		}
}
}